textview: Provide more context to input methods
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Dec 2021 03:38:19 +0000 (22:38 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 3 Dec 2021 19:44:05 +0000 (14:44 -0500)
commitd5c01098fd7ffc044e479798799475ae8b0e6ea0
treeb7a8b97cc11cd3f74da4caac4e4a2a8043c8148c
parent2611a996ff6c0a2bed340feb6a434a03ca7545ec
textview: Provide more context to input methods

When returning surrounding context to input methods,
include at least 2 words before and after the insertion
point.

Update the affected input method tests.
gtk/gtktextview.c
testsuite/gtk/imcontext.c